import com.config.UserConfig;
import com.service.StudentService;
import com.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(UserConfig.class);
        UserService userService = ctx.getBean(UserService.class);
        userService.getList();
        StudentService studentService = ctx.getBean(StudentService.class);
        studentService.getStu();
    }
}
